/*
 * Copyright (c) 2003
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.qtags.impl;

import java.io.IOException;

import java.net.URL;

import org.generama.MetadataProvider;
import org.generama.Plugin;
import org.generama.QDoxCapableMetadataProvider;
import org.generama.VelocityTemplateEngine;
import org.generama.WriterMapper;

import org.xdoclet.AbstractJavaGeneratingPluginTestCase;

/**
 * @author Aslak Helles&oslash;y
 * @version $Revision: 550 $
 */
public class QTagImplPluginTestCase extends AbstractJavaGeneratingPluginTestCase {
    protected URL getExpected() throws IOException {
        return getResourceRelativeToThisPackage("test/FooBarTagImpl.java");
    }

    protected URL getTestSource()  {
        return getResourceRelativeToThisPackage("test/FooBarTag.java");
    }

    protected Plugin createPlugin(MetadataProvider metadataProvider, WriterMapper writerMapper)
        throws Exception {
        return new QTagImplPlugin(new VelocityTemplateEngine(), (QDoxCapableMetadataProvider) metadataProvider,
            writerMapper);
    }
}